import { translate } from '@/utils/i18n'
export const rules = {
  proCode: [{ required: true, message: '请选择地址', trigger: 'change' }],
  address: [{ required: true, message: '请输入详细地址', trigger: 'change' }],
  subjectType: [{ required: true, message: '请输入主办者性质', trigger: 'blur' }],
  certificateType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
  certificatePhotoPath: [{ required: true, message: '请上传营业执照', trigger: 'blur' }],
  subjectName: [{ required: true, message: '请输入企业名称', trigger: 'blur' }],
  certificateAddress: [{ required: true, message: '请输入证件住所', trigger: 'blur' }],
  certificateNumber: [{ required: true, message: '请输入营业执照号', trigger: 'blur' }],

  principalInfoCertificateType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
  principalInfoMobile: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
  principalInfoName: [{ required: true, message: '请输入主体负责人姓名', trigger: 'blur' }],
  principalInfoEmergencyContact: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
  principalInfoCertificateNumber: [{ required: true, message: '请输入证件号码', trigger: 'blur' }],
  subjectFrontPath: [{ required: true, message: '请上传身份证人像面', trigger: 'blur' }],
  subjectBackPath: [{ required: true, message: '请上传身份证国徽面', trigger: 'blur' }],
  principalInfoEmail: [{ required: true, message: '请输入邮箱地址', trigger: 'blur' }],
  certificateValidityDateStart: [{ required: true, message: '请选择证件有效期', trigger: 'change' }],
  certificateValidityDateEnd: [{ required: true, message: '请选择证件有效期', trigger: 'change' }],

  appletServiceContentTypes: [{ required: true, message: '请选择服务内容标识', trigger: 'change' }],
  appletNrlxDetails: [{ required: true, message: '请选择互联网信息服务前置审批项', trigger: 'change' }],
  examinePathList: [{ required: true, message: '请上传文件', trigger: 'blur' }],
  appletComment: [{ required: true, message: translate('bzxxPlace'), trigger: 'blur' }],

  isusePrincipalInfo: [{ required: true, message: '请选择填写方式', trigger: 'change' }],
  appletUserName: [{ required: true, message: '请输入负责人姓名', trigger: 'change' }],
  appletUserMobile: [{ required: true, message: '请输入负责人手机号', trigger: 'blur' }],
  appletUserEmergencyContact: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
  appletUserEmail: [{ required: true, message: '请输入邮箱地址', trigger: 'blur' }],
  appletUserCertificateType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
  appletUserCertificateNumber: [{ required: true, message: '请输入证件号', trigger: 'blur' }],
  appletUserDateStart: [{ required: true, message: '请选择证件有效期', trigger: 'change' }],
  appletUserDateEnd: [{ required: true, message: '请选择证件有效期', trigger: 'change' }],
  appletFrontPath: [{ required: true, message: '请上传身份证人像面', trigger: 'blur' }],
  appletBackPath: [{ required: true, message: '请上传身份证国徽面', trigger: 'blur' }],
  appletAuthPath: [{ required: true, message: '请上传文件', trigger: 'blur' }]
}
